@charset 'utf-8';
@import  'sandal/core';
@import  'core/mixins', 'core/functions', 'core/vars';

$headerBorder: 2px;
$menuH: 40px;

header.ht-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-width: $w;
	border-bottom: $headerBorder solid $fontColorBlack;
	background-color: #fff;
	color: $fontColorBlack;
	z-index: 99;
	
	nav {
		width: $w;
		height: $headerH;
		margin: 0 auto;
	}
}
h1 {
	position: absolute;
	padding: 30px 0 16px;
	margin: 0 auto;
	z-index: 9;

	img {
		border: 0;
	}
}
.ht-nav {
	position: relative;
	margin: 0 auto;
	margin-left: 220px;
	line-height: $headerH;
	font-size: 0;
	z-index: 1;

	& > li {
		float: left;
		width: 130px;
		padding: 0;
		font-size: $fontNav;
		text-align: center;
		cursor: pointer;
		
		&.ht-nav-dropdown {
			position: relative;

			&:after {
				content: "";
				position: absolute;
				top: $headerH;
				left: -2000px;
				width: 4000px;
				height: $menuH;
				background-color: rgba(0, 0, 0, .6);
				display: none;
			}

			&.active {
				& > .ht-nav-dropdown-menu {
					display: block;
				}

				&:after {
					display: block;
				}
			}
		}

		&.active, &:hover {
			color: $colorYellowHeader;
		}
	}

	a {
		&:hover, &:visited, &:active, &:link {
			color: inherit;
			text-decoration: none;
		}
	}
}
.ht-nav-dropdown-menu {
	position: absolute;
	top: $headerH + 2;
	left: -20px;
	width: 1000px;
	padding-left: 0;
	text-align: left;
	font-size: $fontNavSub;
	color: #fff;
	line-height: $menuH;
	z-index: 2;
	display: none;

	& > li {
		float: left;
		width: 100px;
		text-align: center;
		line-height: $menuH - $headerBorder;
	}
	
	.ht-nav-dropdown-menu-bg {
		position: absolute;
		left: 0;
		height: $menuH - $headerBorder;
		background-color: $colorYellowHeader;
		z-index: -1;
		transition: .5s;
	}
}